# 非零即真
# 非空既真

# 字符串--数字
s = "10"
print(type(s))
print(int(s))
print(type(int(s)))  # instance of

# 数字---字符串
a = 100
print(str(a))
print(type(str(a)))

# 转bool
print(bool("a"))  # True
print(bool(""))  # False
print(bool(10))  # True
print(bool(0))  # Flase
print(bool(1.2))  # True

# 浮点--整数
print(int(1.2))
print(int(1.6))

print(float(1))
